@extends('layouts.normal')
@section('self-style')
    <link rel="stylesheet" href="/package/plugins/bootstrap-table/bootstrap-table.min.css">
    <style type="text/css">
        .teacher-info {}
        .teacher-info .header, .teacher-info .footer {background: #E9E9E9;line-height: 40px;}
        .teacher-info .header label {text-align: center;}
    </style>
    <script type="text/javascript">
        var id = {!! $id !!};
    </script>
@endsection

@section('menu')
    @include("hro.layouts.menu")
@endsection

@section("header")
    <section class="content-header">
        <h4>
            教师管理
            <b>/</b>
            教师详情
        </h4>
    </section>
@endsection

@section('content')
    <section class="content">
        <div class="row">
            <!-- /.col -->
            <div class="col-md-12">
                <div class="box box-info">
                    <div class="box-header with-border">
                        <div class="col-sm-12">
                            <h3 class="col-sm-2 box-title"></h3>
                            <div class="col-sm-9">
                                <a class="btn btn-sm btn-default pull-right" href="javascript:history.back();">返回</a>
                            </div>
                        </div>
                    </div>
                    <!-- /.box-header -->
                    <div class="box-body teacher-info">
                        <table id="teacher-table" data-height="600" class="table table-hover table-striped">
                            <thead>
                            <tr>
                                <th style="" data-field="id" tabindex="0">
                                    <div class="th-inner ">信息类型</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="rent_user_name" tabindex="0">
                                    <div class="th-inner ">信息内容</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="gender" tabindex="0">
                                    <div class="th-inner ">附件</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="join_age" tabindex="0">
                                    <div class="th-inner ">审核时间</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="professional_title_code" tabindex="0">
                                    <div class="th-inner ">备注</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="updated_at" tabindex="0">
                                    <div class="th-inner ">分数</div>
                                    <div class="fht-cell"></div>
                                </th>
                                <th style="" data-field="id" tabindex="0">
                                    <div class="th-inner ">操作</div>
                                    <div class="fht-cell"></div>
                                </th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr data-index="0">
                                <td class="">姓名</td>
                                <td class="teacher-realname"></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">工号</td>
                                <td class="teacher-number"></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">性别</td>
                                <td class="teacher-gender"></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">身份证号</td>
                                <td class="teacher-identity"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score"></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">手机号</td>
                                <td class="teacher-mobile"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score"></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">所在单位</td>
                                <td class="teacher-unit"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score"></td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">进校时间</td>
                                <td class="teacher-join-at"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="4" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">工龄</td>
                                <td class="teacher-work-age"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="5" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">学历</td>
                                <td class="teacher-education"></td>
                                <td class="attachment">
                                    <a class="education-profile" href="">学历</a>
                                    <a class="degree-profile" href="">学位</a>
                                </td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="6" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">职务</td>
                                <td class="teacher-job"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="7" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">职称</td>
                                <td class="teacher-professional-title"></td>
                                <td class="attachment">
                                    <a class="professional-title-profile" href="">查看</a>
                                </td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="8" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">职称评审时间</td>
                                <td class="teacher-professional-check"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="13" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">现岗位聘用时间</td>
                                <td class="teacher-duty-on"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="14" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">聘用方式</td>
                                <td class="teacher-jdutytype"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="15" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">身份</td>
                                <td class="teacher-capacity"></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class="">-</td>
                                <td class=""></td>
                            </tr>
                            <tr data-index="0">
                                <td class="">婚姻状态</td>
                                <td class="teacher-marriage"></td>
                                <td class="attachment">
                                    <a class="marriage-profile" href="">查看</a>
                                </td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="9" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">配偶姓名</td>
                                <td class="teacher-spouse-name"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="10" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">配偶工作单位</td>
                                <td class="teacher-spouse-unit"></td>
                                <td class=""></td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="11" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">住房情况</td>
                                <td class="teacher-has-house"></td>
                                <td class="attachment">
                                    <a class="house-profile" href="">查看</a>
                                </td>
                                <td class="check-time"></td>
                                <td class="check-remark"></td>
                                <td class="teacher-score">-</td>
                                <td class="">
                                    <a class="btn btn-xs btn-primary" data-toggle="modal" data-target="#view-score-dialog" data-key="12" data-score="" data-remark="">打分</a>
                                </td>
                            </tr>
                            <tr data-index="0">
                                <td class="">总得分</td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class=""></td>
                                <td class="sum-score">-</td>
                                <td class="">
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.tab-content -->
                </div>
                <!-- /.nav-tabs-custom -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>
@endsection


@section('modal')
    <div class="modal fade" id="view-score-dialog">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">审核打分</h4>
                </div>
                <div class="modal-body">
                    <div class="form-horizontal m-t">
                        <div class="form-group">
                            <label class="control-label col-sm-3"></label>
                            <div class="col-sm-9"><input type="hidden" class="teacher-id" value="{!! $id !!}" /></div>
                            <div class="col-sm-9"><input type="hidden" class="score-key" /></div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-3">分数：</label>
                            <div class="col-sm-9">
                                <input type="text" class="form-control score-num">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-3">备注（选填）：</label>
                            <div class="col-sm-9">
                                <textarea class="form-control score-remark"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary pull-left btn-save">提交</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                </div>
            </div>
            <!-- /.modal-content -->
        </div>
        <!-- /.modal-dialog -->
    </div>
@endsection



@section('self-script')
    <script type="text/javascript" src="/js/hro/teacher-view.js?v={{ time() }}"></script>
@endsection